package command.fromKanYun;

public class OrderCommand implements Command{

    protected CookReceiver cook;

    public OrderCommand(CookReceiver cookReceiver) {
        this.cook = cookReceiver;
    }

    @Override
    public void execute(){
        cook.cooking();
    }

    @Override
    public void undo(){
        cook.unCooking();
    }

}
